Imports System.Security.Cryptography
Imports myBookmarks.Core
Imports myBookmarks.Data
Namespace myBookmarks.Infrastructure
    Public Interface IUserService
        Function GetUserByUsername(ByVal username As String) As User
        Function CreateUser(ByVal username As String, ByVal password As String) As User
        Function SaveUser(ByVal user As User) As Boolean
        Function ChangePassword(ByVal user As User, ByVal newpassword As String) As Boolean
        Function DoesUsernameExists(ByVal username As String) As Boolean
        Function ValidateUser(ByVal user As User, ByVal password As String) As Boolean
    End Interface
End Namespace
